/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package TestPackage;

import Pendataan.Pendataan;
import Pendataan.PendataanKontrol;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author MacBook
 */
public class TestPendataanKontrol {

    public static void main(String[] args) {
       ArrayList<Pendataan>listpendataan  = new ArrayList<Pendataan>();
       try {
//            PendataanKontrol test = new PendataanKontrol(konek.getConnection());
              for (int i = 0; i < listpendataan.size(); i++) {
                System.out.println("judul       " + listpendataan.get(i).getJudulBuku());
                System.out.println("No buku     " + listpendataan.get(i).getNoBuku());
                System.out.println("penerbit    " + listpendataan.get(i).getPenerbit());
                System.out.println("pengarang       " + listpendataan.get(i).getPengarang());
                System.out.println("tahun terbit    " + listpendataan.get(i).getTahunTerbit());
            }
       }

//        catch (SQLException exception) {
//            Longger.getLogger(TestPendataanKontrol.class.getName()).log(Level.SEVERE, null, exception);
          catch(Exception ex){
              Logger.getLogger(TestPendataanKontrol.class.getName()).log(Level.SEVERE, null,ex);
        }
}
}
